package cn.kgc.springcloud.clients;

import cn.kgc.springcloud.entity.Group;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 课工场
 * @date 2024/10/25
 * @description
 */
@FeignClient("GROUPSERVICE")
public interface GroupClient {

    @GetMapping("/groups/{id}")
    Group getOneGroup(@PathVariable("id") Integer id);

}
